# -*- coding: utf-8 -*-
# @Time        :2025/7/10 下午4:23
# @Author      :文刀水寿
# @File        : redis连接.py
"""
 @Description :
"""
import redis

#
# r = redis.Redis(host='127.0.0.1', port=6379)
#
# r.set('foo', 'Bar')

pool = redis.ConnectionPool(host='127.0.0.1', port=6379)
r = redis.Redis(connection_pool=pool)

r.set('name', 'liuheyu')
